const path = require('path')
var htmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
    entry: {
       app: './src/index.js'
    },
    output:{
        path: path.resolve(__dirname,'dist'),
        filename: 'bundle.js'
    },
    devServer: {
        contentBase: './dist'
    },
    plugins: [
        new htmlWebpackPlugin()
    ]
}